package com.sxhalo.fsms.util;

import java.util.List;

public class PageData {
	private Integer current; // 当前页
	private Integer pageSize; // 每页显示多少条记录
	private Integer pageCount; // 总页数
	private Integer total;// 总记录数
	private List<?> data;// 数据

	public PageData(Integer current, Integer pageSize, Integer total) {
		this.current = current;
		this.pageSize = pageSize;
		this.total = total;
		this.pageCount = (total + pageSize - 1) / pageSize;
	}

	public PageData(Integer current, Integer pageSize, Integer total,
			List<?> data) {
		this.current = current;
		this.pageSize = pageSize;
		this.total = total;
		this.data = data;
		this.pageCount = (total + pageSize - 1) / pageSize;
	}

	public Integer getCurrent() {
		return current;
	}

	public void setCurrent(Integer current) {
		this.current = current;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getPageCount() {
		return pageCount;
	}

	public void setPageCount(Integer pageCount) {
		this.pageCount = pageCount;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public List<?> getData() {
		return data;
	}

	public void setData(List<?> data) {
		this.data = data;
	}
}
